package ooday05;
/*
getter/setter----
1.必须包含公开的无参构造方法
2.成员变量必须私有化,并且有对应的公开的getter/setter
*/
public class Point {
    private int x;
    private int y;
    public Point(){

    }

    public int getX(){//getter
        return x;
    }
    public void setX(int x){//setter
        this.x = x;
    }
    public int getY(){//getter
        return y;
    }
    public void setY(int y){//setter
        this.y=y;
    }
}
